package com.community.owner.domain;

import com.community.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OwnerVehicleRecord extends BaseEntity{
    private Integer recordId;

    /**
     * 社区ID
     */
    private Integer communityId;

    /**
     * 车牌号
     */
    private String carNo;

    /**
     * 车辆类型
     */
    private String vehicleType;

    /**
     * 车主姓名
     */
    private String ownerName;

    /**
     * 车主手机号
     */
    private String ownerPhone;

    /**
     * 车位编号
     */
    private String parkingSpaceNo;

    /**
     * 出入闸机
     */
    private String gateDevice;

    /**
     * 支付方式
     */
    private String paymentMethod;

    /**
     * 入场时间
     */
    private Date entryTime;

    /**
     * 出场时间
     */
    private Date exitTime;

    /**
     * 状态
     */
    private String status;

    /**
     * 费用
     */
    private BigDecimal fee;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;
    private String images;
    private Integer parkingDuration; // 停车时长（分钟）

    private OwnerCommunity ownerCommunity;


    // 手动添加 setter 和 getter 方法
    public void setOwnerCommunity(OwnerCommunity ownerCommunity) {
        this.ownerCommunity = ownerCommunity;
    }

    public OwnerCommunity getOwnerCommunity() {
        return ownerCommunity;
    }
}
